#!/usr/bin/python
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import patterns, include, url
import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from main_views import view_monitor, get_monitor_usb, get_monitor_wifi


from dapi import urls as apiurls
from sockets.views import get_socket



urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'aam2m.views.home', name='home'),
    url(r'^$', view_monitor),
    url(r'getsocket/$', get_socket),
    url(r'^', include(apiurls)),
    #url(r'api/getmonitor/(?P<slug>\w+(/\w+)*)/$',toogleOnOff),
    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}), 
)
